﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Hyjx.MixerService.Objects
{
    /// <summary>
    /// 提交搅拌机警报参数
    /// </summary>
    public class ReportMixerAlarmArgs
    {
        /// <summary>
        /// 设备编码
        /// </summary>
        [JsonPropertyName("device_code")]
        public string DeviceCode { get; set; } = string.Empty;
        /// <summary>
        /// true 表示分散变频器故障报警
        /// </summary>
        [JsonPropertyName("scattered_alarm")]
        public bool ScatteredAlarm { get; set; }
        /// <summary>
        /// true 表示搅拌变频器故障报警
        /// </summary>
        [JsonPropertyName("stir_alarm")]
        public bool StirAlarm { get; set; }
        /// <summary>
        /// true 表示真空传感器故障报警
        /// </summary>
        [JsonPropertyName("vacuum_alarm")]
        public bool VacuumAlarm { get; set; }
        /// <summary>
        /// true 表示温度传感器故障报警
        /// </summary>
        [JsonPropertyName("temperature_alarm")]
        public bool TemperatureAlarm { get; set; }
        /// <summary>
        /// true 表示油站电机过载报警
        /// </summary>
        [JsonPropertyName("motor_overloaded_alarm")]
        public bool MotorOverloadedAlarm { get; set; }
        /// <summary>
        /// true 表示处于急停状态
        /// </summary>
        [JsonPropertyName("stop_state")]
        public bool StopState { get; set; }
        /// <summary>
        /// true 表示物料超温报警
        /// </summary>
        [JsonPropertyName("overtemperature_alarm")]
        public bool OvertemperatureAlarm { get; set; }
        /// <summary>
        /// true 表示冷水流量异常报警
        /// </summary>
        [JsonPropertyName("cold_water_flow_alarm")]
        public bool ColdWaterFlowAlarm { get; set; }
        /// <summary>
        /// true 表示高速轴保养时间到
        /// </summary>
        [JsonPropertyName("highspeed_shaft_timeout")]
        public bool HighspeedShaftTimeout { get; set; }
        /// <summary>
        /// true 表示低速轴保养时间到
        /// </summary>
        [JsonPropertyName("lowspeed_shaft_timeout")]
        public bool LowspeedShaftTimeout { get; set; }
        /// <summary>
        /// true 表示压缩气欠压报警
        /// </summary>
        [JsonPropertyName("underpressure_alarm")]
        public bool UnderpressureAlarm { get; set; }
        /// <summary>
        /// true 表示回水温度传感器故障
        /// </summary>
        [JsonPropertyName("backwater_alarm")]
        public bool BackwaterAlarm { get; set; }
        /// <summary>
        /// true 表示罐内压力大于 0.015Mpa
        /// </summary>
        [JsonPropertyName("overpressure_alarm")]
        public bool OverpressureAlarm { get; set; }
        /// <summary>
        /// true 表示隔膜泵电接点压力表报警
        /// </summary>
        [JsonPropertyName("pressure_gauge_alarm")]
        public bool PressureGaugeAlarm { get; set; }
    }
}
